package es.us.idinfor.test;

import java.awt.Dimension;

import javax.swing.JApplet;
import javax.swing.JFrame;

import org.jgraph.JGraph;

import es.us.idinfor.graph.Graph;

public class Main extends JApplet {
	public static final String FILENAME = "file/sequences.txt";
	
	private static final long serialVersionUID = 3256444702936019250L;
	private static final Dimension DEFAULT_SIZE = new Dimension(800, 600);
	
	public static void main(String [] args) {
		Main applet = new Main();
        
        applet.init();

        JFrame frame = new JFrame();
        frame.getContentPane().add(applet);
        frame.setTitle("Maximum Common Episode");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setSize(DEFAULT_SIZE);
        frame.setVisible(true);
    }
	
	public void init() {
		JGraph g = Graph.getEpisodeGraph(FILENAME, DEFAULT_SIZE);
				
    	getContentPane().add(g);
    }
}
